package com.zqx.command.request;

import com.zqx.command.abstractcommand.Command;

/**
 * description: 请求调用者（请求发送者）
 * @author zqx
 * @date 2018/09/04
 */
public class FunctionButton {

    private Command command;

    //为功能键注入命令
    public void setCommand(Command command) {
        this.command = command;
    }

    //发送请求的方法
    public void click()
    {
        System.out.println("单击功能键");
        command.execute();
    }

}
